package com.yoda.youdianda.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yoda.youdianda.common.R;
import com.yoda.youdianda.domain.SysUser;
import com.yoda.youdianda.dto.PageDto;
import com.yoda.youdianda.dto.UserDto;
import com.yoda.youdianda.dto.UserLoginFrontDto;
import com.yoda.youdianda.vo.SysUserVo;

import java.util.Map;

/**
 * @author shawn
 * @date 2022年 11月 12日 20:18
 */

public interface SystemUserService extends IService<SysUser> {
    public SysUser selectUserByLoginName(String login_name);

    SysUser selectUserById(String userId);

    R<String> add(UserDto dto);

    void updateUser(SysUser sysUser);

    Integer countUsers();

    PageDto getList(String loginName, String status, String phone, int page, int limit);

    R<String> del(String id);

    R<String> udp(UserDto sysUser);

    R<SysUserVo> row(String id);
}
